#include "Utils/StringUtil.hpp"
#include "lexical_cast.hpp"
#include "StringCast.hpp"

#include <iostream>
#include <memory>

using namespace std;

int main()
{
    std::cout.setf(std::ios_base::boolalpha);

    string str = "0512000601054A003COK1";
    str = sh::StringUtil::replace(str, "OK", "");
    cout << str.length() << " " << str << endl;
    str = sh::StringUtil::trimmed(str);
    cout << str.length() << " " << str << endl;

    vector<std::string> vector = sh::StringUtil::split(str, "0");
    for (const auto& v: vector)
    {
        cout << v << " ";
    }
    cout << endl;

    return 0;
}
